//
//  RSSFeed+WebFeed.swift
//  RssFly
//
//  Created by shen on 2023/10/17.
//

import Foundation
import FeedKit

extension RSSFeed: WebFeed {
    var webpage: URL? {
        if let urlString = link?.trimmingCharacters(in: .whitespacesAndNewlines),
           let link = URL(string: urlString)
        {
            return link
        }

        return nil
    }
}
